
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-111"></use>
                    </svg>
                    <div class="name">专家</div>
                    <div class="fontclass">#icon-111</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jidi"></use>
                    </svg>
                    <div class="name">基地</div>
                    <div class="fontclass">#icon-jidi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-baozhang"></use>
                    </svg>
                    <div class="name">保障</div>
                    <div class="fontclass">#icon-baozhang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yonghu"></use>
                    </svg>
                    <div class="name">用户</div>
                    <div class="fontclass">#icon-yonghu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mima"></use>
                    </svg>
                    <div class="name">密码</div>
                    <div class="fontclass">#icon-mima</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-baozhangyusan"></use>
                    </svg>
                    <div class="name">保障 雨伞</div>
                    <div class="fontclass">#icon-baozhangyusan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weibiaoti34"></use>
                    </svg>
                    <div class="name">右</div>
                    <div class="fontclass">#icon-weibiaoti34</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-caidan"></use>
                    </svg>
                    <div class="name">菜单</div>
                    <div class="fontclass">#icon-caidan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-binanchangsuoguanli"></use>
                    </svg>
                    <div class="name">避难场所管理</div>
                    <div class="fontclass">#icon-binanchangsuoguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjiziyuanguanli"></use>
                    </svg>
                    <div class="name">应急资源管理</div>
                    <div class="fontclass">#icon-yingjiziyuanguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jigou"></use>
                    </svg>
                    <div class="name">机构</div>
                    <div class="fontclass">#icon-jigou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cheliang"></use>
                    </svg>
                    <div class="name">车辆</div>
                    <div class="fontclass">#icon-cheliang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-webicon03"></use>
                    </svg>
                    <div class="name">菜单</div>
                    <div class="fontclass">#icon-webicon03</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-binanchangsuo"></use>
                    </svg>
                    <div class="name">避难场所</div>
                    <div class="fontclass">#icon-binanchangsuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-binanchangsuo1"></use>
                    </svg>
                    <div class="name">避难场所</div>
                    <div class="fontclass">#icon-binanchangsuo1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanjia"></use>
                    </svg>
                    <div class="name">专家</div>
                    <div class="fontclass">#icon-zhuanjia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mima1"></use>
                    </svg>
                    <div class="name">密码</div>
                    <div class="fontclass">#icon-mima1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-baozhang1"></use>
                    </svg>
                    <div class="name">保障</div>
                    <div class="fontclass">#icon-baozhang1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yanzhengma"></use>
                    </svg>
                    <div class="name">验证码</div>
                    <div class="fontclass">#icon-yanzhengma</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiuyuan"></use>
                    </svg>
                    <div class="name">救援</div>
                    <div class="fontclass">#icon-jiuyuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cheliang1"></use>
                    </svg>
                    <div class="name">车辆</div>
                    <div class="fontclass">#icon-cheliang1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-right"></use>
                    </svg>
                    <div class="name">右</div>
                    <div class="fontclass">#icon-right</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renyuanxinxi"></use>
                    </svg>
                    <div class="name">人员信息</div>
                    <div class="fontclass">#icon-renyuanxinxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiuyuanduiwu"></use>
                    </svg>
                    <div class="name">救援队伍</div>
                    <div class="fontclass">#icon-jiuyuanduiwu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjiduiwu"></use>
                    </svg>
                    <div class="name">2应急队伍</div>
                    <div class="fontclass">#icon-yingjiduiwu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjiwuzi"></use>
                    </svg>
                    <div class="name">应急物资</div>
                    <div class="fontclass">#icon-yingjiwuzi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jidi1"></use>
                    </svg>
                    <div class="name">基地</div>
                    <div class="fontclass">#icon-jidi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiuyuanduiwu-kuai"></use>
                    </svg>
                    <div class="name">救援队伍-块</div>
                    <div class="fontclass">#icon-jiuyuanduiwu-kuai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cheliang2"></use>
                    </svg>
                    <div class="name">车辆</div>
                    <div class="fontclass">#icon-cheliang2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ecurityCode"></use>
                    </svg>
                    <div class="name">验证码</div>
                    <div class="fontclass">#icon-ecurityCode</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-oracle"></use>
                    </svg>
                    <div class="name">管理系统</div>
                    <div class="fontclass">#icon-oracle</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiuyuanduiwu1"></use>
                    </svg>
                    <div class="name">救援队伍</div>
                    <div class="fontclass">#icon-jiuyuanduiwu1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yunshubaozhangjigou"></use>
                    </svg>
                    <div class="name">运输保障机构</div>
                    <div class="fontclass">#icon-yunshubaozhangjigou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yonghu1"></use>
                    </svg>
                    <div class="name">用户</div>
                    <div class="fontclass">#icon-yonghu1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanjia-copy"></use>
                    </svg>
                    <div class="name">专家</div>
                    <div class="fontclass">#icon-zhuanjia-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-baozhang2"></use>
                    </svg>
                    <div class="name">保障</div>
                    <div class="fontclass">#icon-baozhang2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xitong"></use>
                    </svg>
                    <div class="name">系统</div>
                    <div class="fontclass">#icon-xitong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jidi2"></use>
                    </svg>
                    <div class="name">基地</div>
                    <div class="fontclass">#icon-jidi2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cheliang3"></use>
                    </svg>
                    <div class="name">车辆</div>
                    <div class="fontclass">#icon-cheliang3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-caidan1"></use>
                    </svg>
                    <div class="name">菜单</div>
                    <div class="fontclass">#icon-caidan1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yanzhengma1"></use>
                    </svg>
                    <div class="name">验证码-登录页</div>
                    <div class="fontclass">#icon-yanzhengma1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhinengyunwei"></use>
                    </svg>
                    <div class="name">管理系统_智能运维</div>
                    <div class="fontclass">#icon-zhinengyunwei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-liuchengguanlixitong"></use>
                    </svg>
                    <div class="name">流程管理系统</div>
                    <div class="fontclass">#icon-liuchengguanlixitong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjiduiwu1"></use>
                    </svg>
                    <div class="name">应急队伍</div>
                    <div class="fontclass">#icon-yingjiduiwu1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjiziyuanguanli-"></use>
                    </svg>
                    <div class="name">应急资源管理-01</div>
                    <div class="fontclass">#icon-yingjiziyuanguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renyuanxinxi1"></use>
                    </svg>
                    <div class="name">人员信息</div>
                    <div class="fontclass">#icon-renyuanxinxi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjiwuzi1"></use>
                    </svg>
                    <div class="name">应急物资</div>
                    <div class="fontclass">#icon-yingjiwuzi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cheliang4"></use>
                    </svg>
                    <div class="name">车辆</div>
                    <div class="fontclass">#icon-cheliang4</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjijiuyuan"></use>
                    </svg>
                    <div class="name">应急救援</div>
                    <div class="fontclass">#icon-yingjijiuyuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-you"></use>
                    </svg>
                    <div class="name">右</div>
                    <div class="fontclass">#icon-you</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjiwuzixinxi"></use>
                    </svg>
                    <div class="name">应急物资信息</div>
                    <div class="fontclass">#icon-yingjiwuzixinxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renyuanxinxi2"></use>
                    </svg>
                    <div class="name">人员信息</div>
                    <div class="fontclass">#icon-renyuanxinxi2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingji"></use>
                    </svg>
                    <div class="name">应急</div>
                    <div class="fontclass">#icon-yingji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yanzhengma2"></use>
                    </svg>
                    <div class="name">验证码</div>
                    <div class="fontclass">#icon-yanzhengma2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renyuanxinxi3"></use>
                    </svg>
                    <div class="name">人员信息</div>
                    <div class="fontclass">#icon-renyuanxinxi3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-liebiaozonglantubiao_yingji"></use>
                    </svg>
                    <div class="name">应急</div>
                    <div class="fontclass">#icon-liebiaozonglantubiao_yingji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjiziyuanguanli1"></use>
                    </svg>
                    <div class="name">应急资源管理</div>
                    <div class="fontclass">#icon-yingjiziyuanguanli1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yonghu2"></use>
                    </svg>
                    <div class="name">用户</div>
                    <div class="fontclass">#icon-yonghu2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingjid"></use>
                    </svg>
                    <div class="name">应急d</div>
                    <div class="fontclass">#icon-yingjid</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jidiguanli"></use>
                    </svg>
                    <div class="name">基地管理</div>
                    <div class="fontclass">#icon-jidiguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanjia1"></use>
                    </svg>
                    <div class="name">专家</div>
                    <div class="fontclass">#icon-zhuanjia1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yingji1"></use>
                    </svg>
                    <div class="name">应急</div>
                    <div class="fontclass">#icon-yingji1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jidi3"></use>
                    </svg>
                    <div class="name">基地</div>
                    <div class="fontclass">#icon-jidi3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qudaoguanlixitong"></use>
                    </svg>
                    <div class="name">渠道管理系统</div>
                    <div class="fontclass">#icon-qudaoguanlixitong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bumen"></use>
                    </svg>
                    <div class="name">机构</div>
                    <div class="fontclass">#icon-bumen</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mima2"></use>
                    </svg>
                    <div class="name">密码</div>
                    <div class="fontclass">#icon-mima2</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
